﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Styles/Site.Master" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Styles_Show" %>
<%@ Import Namespace="System.Data" %>

<asp:Content ID="Content" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>

<asp:Content ID="NaviContent" ContentPlaceHolderID="NaviContent" runat="Server">
    <asp:Repeater ID="NaviRepeater" runat="server" ClientIDMode="AutoID">
        <ItemTemplate>
            <li class="menuItem"><%#DataBinder.Eval(Container.DataItem, "navigationName") %></li>
            <asp:Repeater id="ContentRepeater" runat="server" datasource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("myrelation") %>' >
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
			    <itemtemplate>
                        <li class="menuItemSub"><a href="Index.aspx?contentID=<%#DataBinder.Eval(Container.DataItem, "[\"contentID\"]") %>"><%# DataBinder.Eval(Container.DataItem, "[\"contentTitle\"]")%></a></li>
			    </itemtemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
		    </asp:Repeater> 
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>


<asp:Content ID="ContentPage" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server" Visible="false">    
    <div class="ContentHead">
        <h3 ID="ContentTitle" class="ContentTitle DesignHeading" runat="server"></h3>
        <asp:Label ID="ContentDate" CssClass="ContentDate" runat="server"/>
    </div>
    <div class="ContentText" id="ContentText" runat="server"></div>
</asp:Content>